package com.greatwqs.wmall.user.provider.mapper;

import com.greatwqs.wmall.user.provider.model.po.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by MyBatis Generator 2025/04/01
 * https://github.com/greatwqs/mybatis-generator-plugin
 */
@Mapper
public interface UserMapper {
    int deleteByUserId(Long userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByUserId(Long userId);

    User selectByLoginId(String loginId);

    List<User> selectAll();

    List<User> selectByUserStatus(int userStatus);

    int updateByUserIdSelective(User record);

    int updateByUserId(User record);

    int updateUserPwdByUserId(User record);
}